<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>优秀榜</title>
    <link rel="stylesheet" href="../../addons/party_member/public/css/weui.min.css">
    <link rel="stylesheet" href="../../addons/party_member/public/css/jquery-weui.min.css">

    <!-- body 最后 -->
    <script src="../../addons/party_member/public/js/jquery.min.js"></script>
    <script src="../../addons/party_member/public/js/jquery-weui.min.js"></script>

    <!-- 如果使用了某些拓展插件还需要额外的JS -->
    <script src="../../addons/party_member/public/js/swiper.min.js"></script>
    <script src="../../addons/party_member/public/js/city-picker.min.js"></script>
    <script src="../../addons/party_member/public/js/function.js"></script>
    <style>
        body{
            margin: 0;
            padding: 0;

        }
        .box{
            width: 100%;

            background: url("../addons/party_member/public/image/activityDetail/bg.png") no-repeat ;
            background-size: 100% 100%;
        }
        .head{
            display: block;
            position: relative;
            width: 100%;
            height: 43px;
            background: #ffffff;
            text-align: center;
            font-size: 18px;
            line-height: 43px;
            font-family: -webkit-body;
            color: #333333;

        }
        .head_return{
            display: inline-block;
            position: absolute;
            left: 10px;
            top: 10px;
            width: 20px;
            height: 23px;
            background: url("../addons/party_member/public/image/evaluation/return.png") no-repeat;
            background-size: 12px 23px;

        }




        .banner_info span{
            display: block;
            margin: auto;
            color: #ffffff;
        }

        .table_main{
            display: block;
            margin-top: 10px;
            width: 100%;
            height: auto;
        }

        .table_head span{
            display: inline-block;
            position: absolute;
            left: 0;
            height: 20px;
            border-left: 5px solid red;
            padding-left: 10px;
            color: #a7a7a7;
        }




        .star_pic span{
            display: inline-block;
            margin: auto;
            width: 20px;
            height: 20px;
            background: url(../addons/party_member/public/image/evaluation/star.png) no-repeat;
            background-size: 20px 20px;
        }

        .more_info span{
            display: inline-block;
            width: 13px;
            height: 9px;
            background: url(../addons/party_member/public/image/evaluation/more_btn.png) no-repeat;
            background-size: 13px 9px;
        }



        .main:before{
            content: " ";
            position: absolute;
            width: 4px;
            border-top: 40px solid red;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(.5);
            transform: scaleY(.5);
            left: 0px;
            top: 13px;

        }
        .main{
            position: relative;
            padding:10px 15px;
            color: #888888;
        }
    </style>
</head>
<body>
<div class="box" >
    <div class="head">
        <span class="head_return"></span>
        优秀榜
    </div>
    <div class="banner" style="text-align: center">
        <img src="{$item['photo']}" style="height: auto; width: 90%; margin: 0 auto; margin-top: 10px;" />
    </div>
    <div class="table_main">



        <div  style="width: 100%">
            <h3 style="padding: 5px 15px;text-align: center;color: #333333">{$item['name']}</h3>
            <span style="width:40%;color: #cccccc;text-align: center;display: inline-block">来源：{$item['author']}</span>
            <span style="display: inline-block;color: #cccccc;width:57%;text-align: center">发布时间：{$item['date']}</span>
        </div>
        <div class="main">
            {$item['story']}
        </div>
        <div style="width: 100%;padding: 15px 15px; box-sizing: border-box">
            <i id="live"
               style="margin-right:10px ;display:inline-block;width: 20px;height:20px;background: url(../addons/party_member/public/image/pattern/logogood.png) no-repeat;background-size: 20px 20px"></i><span id="livesum">{$item['lovesum']}</span>
            <i style="margin:0 10px 0 20px ;display:inline-block;height:20px;color: #808080;">阅读数</i><span>{$item['readsum']}</span>
        </div>

    </div>
</div>
<script>
    $(function () {
        var heigth=$(window).height();
        var boxH=$(".box").height();
        if(boxH<heigth){
            $(".box").css({'position':'absolute','height':'100%'});
        }


    })


    $(function () {
        $("#live").click(function () {


            $.showLoading();
            $.post('{php echo $this->createMobileUrl("ExcellentLoveAjax")}',{
                id:"{$item['id']}",
                type:1
            },function (data) {
                $.hideLoading();
                if(data['status']){
                     $("#livesum").text(data.result.lovesum)
                }else{
                    $.alert(data['result'], "提示");
                }
            },'json')


        })
    })

</script>
</body>
</html>